import React, { Component } from 'react'
import HocLogin from '../cotrall/hoclogin'
 class My extends Component {
   state = {
     arr:[
       {tit:"标题1"},
       {tit:"标题2"},
       {tit:"标题3"},
     ]
   }
  render() {
    return (
      <div>
        my

        {
           this.state.arr.map((item,index)=>{
             console.log(item)
            return <div onClick={()=>{console.log(item);}} key={index}>{item.tit}</div>
          })
        }
      </div>
    )
  }
}

export default HocLogin(My)